<script type="text/javascript" src="jquery.js"></script>
 
<html>
<head></head>
<body>
<div class="red">  
<div id="green">xueliang</div>
<div id="gray">hu zong</div>
</div>
<span class="yello">11111</span>
</body>
</html>

<script type="text/javascript">
   var hz = jQuery("#gray");
   //var red = hz.parent();
   //alert(red.html());
   var xue = hz.prev();
   alert(xue.text());
   
</script>